Installation | Demonstration | Citations
EconFreedom contains two primary datasets on economic freedom:
efwpnl: The Economic Freedom of the World (EFW) cross-country panelefna: The Economic Freedom of the World (EFNA) panel of U.S. states# install.package("devtools")
devtools::install_github("acforrester/EconFreedom")
#> Skipping install of 'EconFreedom' from a github remote, the SHA1 (30ed4e74) has not changed since last install.
#> Use `force = TRUE` to force installation
# load packages to use
if (!require("pacman")) install.packages("pacman")
#> Loading required package: pacman
pacman::p_load(tidyverse,plotly,DT)
# load the EFW panel
EconFreedom::efwpnl %>%
# keep
arrange(-year, iso_code) %>%
# print data
DT::datatable(.,
rownames = FALSE,
extensions = c("Buttons"),
options = list(
dom = "Bfrtip",
buttons = c("csv", "excel", "pdf")
)
)
# load the EFNA panel
EconFreedom::efna %>%
# keep
arrange(-year, stfips) %>%
# print data
DT::datatable(.,
rownames = FALSE,
extensions = c("Buttons"),
options = list(
dom = "Bfrtip",
buttons = c("csv", "excel", "pdf")
)
)
James Gwartney, RobertLawson, Joshua Hall, and Ryan Murphy (2021). Economic Freedom Dataset, published in Economic Freedom of the World: 2021 Annual Report. Fraser Institute. www.fraserinstitute.org/economic-freedom/dataset
Dean Stansel, José Torra, and Fred McMahon (2020). Economic Freedom of North America 2020. Fraser Institute. https://www.fraserinstitute.org/studies/economic-freedom-of-north-america-2020